Data & Notes
Audit the live registry, keep browser-local research notes, and understand the automated strategy flow.
Notes stay in this browser; match records are audited from SQLite.
Research notes 0 notes
Assumptions, findings and follow-up actions.
Automated checks and source coverage from the live match registry.
Data quality checklist
Core fields, IDs, 1X2 odds, score validity and sheet coverage.
Source sheets
Live records grouped by workbook sheet.
Verified project state
Measured from the running desktop service and local SQLite databases on 22 November 2026. These values are an audit snapshot, not automatic live counters. For current match totals use Registry & Quality.
6,282 parseable full-time scores; 2 without valid FT scores. Core exception count: 0. This does not establish fixture identity or optional metadata completeness.
The central five-rule register passed 8/8 read-only checks. The recorded-prediction ledger has 2 voided decisions and 0 settled bets; historical P&L is not recorded betting profit.
The latest recorded scan was 22 Nov 2026 at 21:16 UTC, with 0 new fixtures. Queue: 0 pending, 12 imported, 1 already registered. The collector was enabled and its last connection check succeeded.
Of the retained sources, 4 are potential automatic voters, 2 are research-only and 2 support identity/artwork. Three independent agreements are still required; registered providers do not guarantee usable votes.
152,121 aliases and 157,313 provider-ID entries are indexed. These are registry rows, not independently approved team identities. Country/competition and crest decisions remain review-controlled.
At the audit, the workbook mirror reported no pending sync. Two stored Web Push subscriptions do not prove phone delivery; actual Android offline/edit/push outcomes still require a device test.
Authority boundary: football_analytics.db is the master match and live five-rule Manager registry; the workbook mirrors it. The separate Qualification V2 Python modules remain shadow-only. SoccerRating discovery/verification databases and browser-local research notes are separate. Do not convert archived figures into live values.
Project manual · current architecture and 14 reference topics
Before changing the live dataset
Protect the live SQLite match registry and its workbook mirror. This page audits and exports records; it does not edit match data.
01 · Preserve the source of truth
SQLite is authoritative. The app snapshots the database and workbook before supported match changes; keep another copy outside this folder.
02 · Reconcile counts
After a match change, compare the live record total, all seven sheet counts, scores and quality exceptions.
03 · Keep an audit trail
Record the issue, evidence, affected source sheet or match ID, expected behaviour, and next action.
How this workspace uses data
Clear boundaries between source records, calculated results, and personal research notes.
Canonical match registry
Match records come from /api/matches, backed by SQLite. The app syncs the workbook from that database; direct workbook edits do not update live records.
Strategy calculations
The Strategy Performance Manager controls Active rules automatically. Plan 1 takes exactly one Active trigger, Plan 2 takes two or more, and Analytics combines both. Upcoming and unresolved records do not count as settled wins or losses.
Notes and backups
Research notes are stored in this browser. JSON and CSV exports contain notes only; they do not back up or change the SQLite database, workbook or Manager registry.
Recent updates & operating notes
Documentation audited on 22 November 2026 against read-only desktop APIs, SQLite tables and the installed source policy. Current observations are dated; Registry & Quality retains the live match counts, and the 17 November cards remain historical.
SoccerRating collection
The authenticated collector checks seven strategy pages. Its latest verified connection and scan were at 21:16 UTC on 22 November; 342 scans were stored at audit time. The queue has a separate approval boundary: scanning, crest recovery and push alerts cannot auto-import fixtures into SQLite.
Offline and synchronization
Service-worker snapshots can support offline reading, and Matches can queue local Add/Edit/Delete drafts in IndexedDB. Only accepted operations enter SQLite; interrupted-network and device-specific recovery still require controlled verification.
Phone notifications
Two push subscriptions were stored at audit time. Each endpoint is device/browser-specific; push-service acceptance is not proof of a displayed alert. Locked-screen Android delivery and background behavior are not certified by this desktop audit.
Data integrity
The master SQLite database held 6,284 matches with 6,282 valid full-time scores across all seven source sheets. Workbook synchronization reported no pending work at the audit. Match edits, receipt checks and browser-local notes have separate storage boundaries.
LIVE strategy authority
Read-only central verification reported LIVE SQLite cutover, 9 Active rules and 8/8 successful checks. The five-gate lifecycle is production; separate V2 qualification scripts are shadow-only and are not authorized to replace it.
Evidence source policy
Eight providers are retained for new research (4 potential voters, 2 research-only, 2 supporting) and eight legacy sources are disabled for new scans. Historical evidence is preserved; three independent eligible votes are required before an automatic result may be accepted.
Previously documented device test (historical, not rechecked in this audit): An Android device reportedly saved an offline edit, synchronized after reconnection and displayed lock-screen push notifications. This does not certify current phone delivery, offline synchronization or every network condition. Live record and subscription counts are not hard-coded.
Strategy qualification
Live five-rule SQLite lifecycle verified on 22 November 2026 against the central authority API and shared strategy-lifecycle.js. Python Qualification V2 remains shadow-only.
- At least 50 settled strategy matches
- Historical net strictly above GH₵1,000
- Historical ROI strictly above 0%
- Most recent 20 settled-match net strictly above GH₵0
- Performance Score at least 50/100
Separate from qualification: Maximum Drawdown and chronological period analysis are study/monitoring tools. They do not independently promote or demote a strategy.
Risk and chronological evaluation
Historical summaries based on the selected page's settled ledger and analysis scope.
Worst peak-to-trough loss in chronological running profit, with betting units, recovery and trend.
Reference period versus five later periods; results are not independently verified out-of-sample testing.
Strategy Details: 50; Plan 1: 450 (300 reference); Plan 2: 50 settled matches.
300 historical-reference matches followed by five periods of at least 40 settled matches each.
Football Analytics — Project Guide
Verified current state (22 November 2026), page responsibilities, qualification authority, the eight-source fixture policy, synchronization, notifications, quality and safe recovery.
Verified desktop state — 22 November 2026 (dated audit, not an auto-updating counter)
Method: Read-only inspection of the running desktop APIs (/api/health, /api/strategy-authority/central-verification, /api/importer/status, /api/predictions/recorded), installed Python/JavaScript source and SQLite databases on SAVIOLA. API checks returned HTTP 200 in the local browser. These findings are observations at the audit time; recheck before making an operational decision.
| Component | Observed state | Authority and limitation |
|---|---|---|
| Canonical match registry | 6,284 records; 6,282 scored, 2 without a valid FT score; all 7 sheets present; core exceptions 0. | football_analytics.db, /api/matches, /api/health. Passing core validation does not prove that a real fixture was identified correctly. |
| LIVE Strategy Manager | 9 Active; five mandatory gates; 8/8 server verification checks passed; authority cutover and decision capture reported LIVE. | SQLite strategy_authority_registry and central-verification API. Dynamic on data change. Do not infer that shadow or legacy pre-cutover browser helpers are a separate live Manager. |
| Recorded predictions | 2 recorded decisions, both VOIDED; 0 settled wins/losses; GH₵0 recorded net; no measured win rate. | /api/predictions/recorded and the prediction ledgers. Historical research returns are not real recorded betting profit. |
| SoccerRating importer | Collector enabled; last verified authenticated check at 21:16 UTC on 22 Nov; 342 stored scans; 0 pending; 12 imported; 1 already registered; latest scan found 0 new fixtures. | Separate queue SQLite and importer status API. Only human approval can import a fixture. A successful login/scan does not verify every match field. |
| Evidence providers | 8 retained, 8 disabled for new scans. The 8 retained consist of 4 potential voting sources, 2 research-only and 2 supporting/identity sources. | sr_source_policy.py. Eligible votes still need 3 independent agreements. Provider registration, saved snippets or artwork are not automatic verification. |
| Team identity and artwork | 29,477 team records, 152,121 aliases and 157,313 provider-ID rows; master registry contains 91 team logos and 20 country logos. | Counts are stored mappings, not counts of independently approved teams/flags. Fixture country, competition region and crest decisions require review where ambiguous. |
| Workbook and offline | Workbook sync pending: no; last recorded successful sync 22 Nov 2026 19:35 (desktop time). Offline drafts are browser IndexedDB data, not saved match records until accepted. | Health API and SQLite metadata; last sync is a timestamp, not a guarantee about future synchronizations or an untested Android device. |
| Web Push | 2 subscriptions stored. Actual notification display on any particular locked phone not re-tested here. | Saved endpoints and push-service acceptance are not equivalent to successful device delivery. |
| Qualification V2 | Python six-gate/evidence components are present but explicitly shadow-only; live activation remains disabled in that separate subsystem. | qualification_authority_v2.py and qualification_lifecycle_v2.py. The active SQLite five-rule workflow is not replaced by these files. |
Open verification boundaries: Independently verified fixture evidence, physical Android offline draft/sync conflicts, push delivery with the phone closed or locked, complete recovery across all databases and phone-local storage, and genuine out-of-sample strategy performance all require separate tests. The archival 17 November table below must remain dated and unchanged.
Current production architecture — rechecked 22 November 2026
Engineering rule: One authority per responsibility. Match/strategy/decision authority must be checked against the live SQLite server and the current dataset; preserve working behavior and do not promote experimental or legacy diagnostic helpers into authority. Additional V2 qualification remains shadow-only until independently validated and explicitly activated.
| Order | Authoritative component | Displayed outcome |
|---|---|---|
| 1. Match data | football_analytics.db with authenticated /api/matches. The workbook is a synchronized mirror, not a competing master. | Overview, Matches and live Data & Notes read confirmed records. Offline pending drafts do not count. |
| 2. Strategy qualification | One LIVE SQLite Strategy Performance Manager with five mandatory rules. The Emerging Lab studies patterns with 50+ settled matches and restudies demoted rules. | Strategies verifies the live Manager snapshot; experimental V2 qualification is shadow-only. |
| 3. Plan routing | Exactly one verified Active trigger routes to Plan 1; two or more route to Plan 2; zero triggers do not enter either plan. | Plan 2's retrospective combination selection requires a verified matching replay. No prediction is invented if the replay fails. |
| 4. Performance | Analytics combines Plan 1 and Plan 2 once per match. Fixed GH₵100-stake historical P&L is research, not automatically a recorded betting outcome. | The separate recorded-prediction ledger tracks actual captured decisions and settlement events. |
| 5. Fixture collection | Seven authenticated SoccerRating strategy pages feed a separate Review Queue; master imports require an explicit human approval. | Eight sources remain enabled for new checks: API-Football, TheSportsDB, ESPN and football-data.org are potential voters; Tavily and API Ninjas Football are research-only; OpenFootball and Wikidata/Wikimedia are supporting sources. Eight other sources are disabled for new scans, with historical evidence retained. Quorum still requires three independent eligible agreements. |
| 6. Identity & phone | The central team registry separates proposed aliases from verified identities. The desktop binds to loopback and uses private Tailscale HTTPS for approved remote access. | Offline snapshots, device-local sync drafts and browser-local research notes are distinct from authoritative SQLite data. |
Verification limits: Core quality checks do not prove real-world fixture identity or the completeness of optional league, country and kickoff fields. Provider registration does not certify complete source coverage; provider IDs and proposed aliases cannot independently verify a match. Historical strategy research is not out-of-sample validation or official recorded profit. Physical Android behavior, push delivery and multi-database recovery need separate device-level evidence. The dated 17 November register below is an archive, not today's counts.
1. Project purpose and page-by-page guide
This guide reflects the current Football Analytics workflow. Match records live in the app registry, strategy qualification is automatic, and research notes are browser-local. Historical performance describes past records and does not guarantee future results.
| Page | Current role | Use it to |
|---|---|---|
| Overview | Workspace summary. | Review current registry activity, strategy status, performance and shortcuts. |
| Matches | Match record management. | Search and inspect fixtures; online add, edit and delete save to SQLite. Offline Add, Edit and Delete use device-local IndexedDB drafts; the open app syncs them after reconnection. Stale revisions remain conflicts for manual review. |
| Strategies | Automated strategy lifecycle. | The Emerging Strategy Lab studies candidates; the Performance Manager promotes, monitors and returns strategies automatically. Strategy Match Details examines an individual rule. |
| Analytics | Combined Plan 1 + Plan 2 view. | Review each qualifying match once, with its Plan label, settled performance, filters, trends, drawdown and retrospective chronological evaluation. |
| Plan 1 | Single-trigger ledger. | Review matches firing exactly one Active Manager strategy, their performance graph, drawdown and chronological evaluation. |
| Plan 2 | Multi-trigger ledger. | Review matches firing two or more Active Manager strategies, combination settlement and monitoring charts. |
| SoccerRating Importer | Website collection and approval queue. | Scan the authenticated SoccerRating source, review new fixtures, set logos/league/country/kickoff, dismiss or restore archived candidates, and test push notifications. Only approved matches enter SQLite. |
| Data & Notes | Read-only match audit and browser-local notes. | Check record quality and sheet coverage, export registry data, save notes and read this guide. |
Use the shared sidebar to move between pages. The desktop must run for live writes and SoccerRating scans; previously prepared offline screens and drafts can work without it.
2. Application architecture and components
Application pieces
Offline-first — Phase 3: The installed app can view a verified local snapshot of matches, charts, pages, and logos while disconnected. On Matches, offline Add/Edit/Delete actions save device-local pending drafts in IndexedDB after the browser confirms its required local state. When the desktop is online and reachable, the open app uploads these drafts through /api/offline-sync; a successful mutation and matching operation receipt are committed in one SQLite transaction before the local draft is cleared. Duplicate Match IDs, stale revisions and failed validation are NOT overwritten: they remain visible for manual conflict review. Pending drafts never enter SQLite, the workbook, P&L, strategy qualification or calculated graphs until accepted. Offline Add, Edit and Delete match drafts are supported with validation and revision checks; team and country logo changes require online access. Strategy Manager status is authoritative in desktop SQLite. Research notes are browser-local and not synchronized between devices. The desktop SQLite registry remains the master database; offline drafts synchronize when the app is open and authenticated connectivity returns. Background draft synchronization while the app is closed is not guaranteed.
- Local service:
desktop.pystarts the HTTP service and desktop window. - Canonical match data:
football_analytics.dbis the SQLite source of truth./api/matchesserves records;/api/healthreports service status. - Workbook:
SOCCER_RATING.xlsxseeds an empty database. Afterwards the app syncs the workbook from SQLite at startup and after supported changes. Direct workbook edits do not update live records. - Shared UI: Separate HTML pages use the project’s shared navigation, CSS and scripts.
- Strategy state: The authoritative Manager Active-strategy registry is stored in SQLite; browser research preferences are not authoritative.
- Research notes: Notes are also browser-local and separate from match data and Manager status.
Integration boundaries
Matches is the page for changing records. Data & Notes reads /api/matches and optionally /api/health; it does not write match data. Registry CSV is an export snapshot. Notes JSON/CSV actions apply only to notes.
Run the app
Keep the project folder intact. On Windows run START_FOOTBALL_ANALYTICS.bat; it checks Python packages from requirements.txt and starts desktop.py. Keep the launcher/server open. Default address: http://127.0.0.1:8766. Use startup.log or DIAGNOSE_STARTUP.bat if startup fails.
3. Data model and record lifecycle
Match record fields
The API provides a stable ID, source sheet and optional source row, date, teams, three 1X2 odds, full-time score, half-time score, league and kick-off time. Actual result is derived from the full-time score; it is not a separate stored field.
Record lifecycle
- On first setup, the service can seed an empty SQLite database from the numbered workbook sheets.
- Use Matches to add, edit or delete records. The service saves them to SQLite and synchronizes supported changes to the workbook mirror.
- Strategy pages compare source sheet and exact trigger odds against Active Manager rules.
- A parseable full-time score gives a known match result. A blank or malformed score has no valid full-time score; malformed non-empty values are also flagged by the audit.
- A scored match is not automatically a settled bet. It must qualify under a plan, and a Plan 2 combination must have a resolvable selection.
Source sheets
The project expects seven numbered source sheets. Keep the original sheet identity attached to each record; rules from different sheets are not interchangeable.
4. Approved strategy framework and qualification rules
Strategy authority
Strategy Performance Manager is the master strategy engine. Emerging Strategy Lab discovers and studies sheet-specific candidates; the Manager owns the Active registry used by Plan 1, Plan 2, Analytics and Overview. The active count changes over time and is not a fixed catalog.
Five mandatory qualification rules
- At least 50 settled matches.
- Historical net strictly greater than GH₵1,000.
- Historical ROI strictly greater than 0%.
- Net strictly greater than GH₵0 over the latest 20 settled matches in chronological order.
- Performance Score ≥ 50/100, calculated by the shared client strategy engine.
The score is a weighted, capped indicator combining historical ROI (40%), recent-20 net (35%), settled sample size (15%) and historical net (10%). It is not a probability of future success. The shared client engine also requires complete, usable settlement prices.
The Lab studies candidates at GH₵100 per settled match, using a source sheet, exact Draw or Away trigger odds and a selected 1X2 outcome. Current Active rules are excluded from duplicate candidate discovery.
Automatic promotion and return
- Server-side qualification reevaluates automatically when relevant saved data changes. Users do not manually qualify or promote a strategy.
- A candidate meeting all five criteria becomes Active automatically.
- The Manager rechecks Active strategies on relevant saved data changes; failure of any rule demotes the strategy. A demoted strategy below 50 settled matches remains in SQLite history but is excluded from Lab studies.
- Every strategy remaining in the Manager is Active. Returned strategies can rejoin after re-qualifying.
- Exactly one Active trigger routes a match to Plan 1; two or more route it to Plan 2; no Active trigger routes it to neither.
Manager status is persisted in SQLite, not controlled by browser local storage. Historical qualification is a backtest filter, not a promise of future performance.
5. Performance and financial calculations
| Measure | Current meaning |
|---|---|
| Settled bet | A qualifying prediction with a valid actual result and resolved selection. |
| Win net | (selected outcome odds − 1) × GH₵100. |
| Loss net | −GH₵100. |
| Settled stake | settled bets × GH₵100. |
| ROI | net P&L ÷ settled stake × 100; unresolved/upcoming bets are excluded. |
| Hit rate | wins ÷ (wins + losses) × 100; ties and upcoming records are excluded. |
| Recent 20 Net | Net return over the latest 20 settled strategy matches in chronological order. |
| Running balance | Cumulative settled net in chronological order from GH₵0, unaffected by display sorting. |
| Combined Analytics | Combines Plans 1 and 2; each qualifying match appears once and keeps its Plan label. |
| Page | Chronological evaluation eligibility | Reference and later periods |
|---|---|---|
| Strategy Match Details | At least 50 settled matches for the selected rule | First half of the matching settled ledger is reference; remainder is split into five chronological periods. |
| Plan 1 | At least 450 settled single-trigger matches in selected scope | First 300 reference matches; remainder divided into five later periods (at least 30 per period). |
| Plan 2 | At least 50 settled multi-trigger matches in selected scope | First half reference, remainder divided into five periods. |
| Analytics | At least 500 settled combined-plan matches in selected scope | First 300 reference matches; five later periods (at least 40 per period), with same-day boundary adjustment. |
Maximum Drawdown is the largest decline from a previous peak in chronological cumulative settled P&L, starting at GH₵0. It is also expressed in GH₵100 betting units. Chronological evaluation summarizes later periods for a currently defined strategy/plan; it does not reconstruct rule discovery at each cutoff and is explicitly retrospective, not verified out-of-sample (OOS). Filtering out losses, choosing wins-only results or restricting to one page changes the measured risk and performance. An insufficient sample or invalid dates/odds may prevent evaluation.
Plan 2 combination settlement
Plan 2 groups matches with the same set of Active triggers. The most frequent actual 1X2 result in a group grades its settled matches. A frequency tie is resolved by the highest hypothetical GH₵100-stake net when one outcome has a unique complete result. If the tie remains or the comparison is incomplete, the combination stays unresolved and contributes no settled stake, win/loss or ROI.
Monthly P&L and return metrics use settled results only. Qualifying match counts may include upcoming or unresolved records. These figures describe historical data, not future results.
6. Recommended operating workflows
Update a match
- In Matches, add or edit the fixture and verify source sheet, date, teams, league, three odds and score/time fields.
- Save through the app. SQLite remains canonical and the service syncs the workbook mirror.
- When complete, save a valid full-time score. Strategy and plan results update when current data loads or refreshes.
- Review automatic decisions in Strategies, then match routing in Plan 1/Plan 2 and combined results in Analytics. Inspect risk and retrospective chronological panels separately from qualification.
- Use Data & Notes to audit fields and source-sheet coverage. It does not correct records.
Keep research notes
Save a short title, category, priority, evidence and next action. Search, filter and sort notes in this browser. Export JSON before clearing site data or changing profiles.
Compare totals
The full registry includes matches that may not trigger a strategy. Plans include only matches triggered by the current Active Manager rules. Analytics combines those plan ledgers.
7. Data quality, validation and change safety
Automated checks
Core checks cover required match fields, settlement formatting and expected source sheets. The optional metadata row in Registry & Quality reports API field coverage separately; missing league, country or kickoff does not turn a valid match into an invalid bet.
- Core fields: date, home team, away team and valid sheet number 1–7.
- Stable IDs: missing and duplicate match IDs.
- Odds: numeric home, draw and away odds greater than 1.
- Scores: malformed non-empty full-time scores, and half-time scores exceeding the corresponding full-time score when both parse.
- Sheet coverage: any of the seven expected sheets with no records.
The page shows counts by source sheet and separates records with valid full-time scores from those without. A malformed score is flagged and is not counted as scored. The health badge summarizes the live audit; it does not certify every source value or strategy assumption.
Safe changes
- Use Matches for record edits. Avoid direct SQLite or workbook edits; SQLite is canonical and the service rebuilds its workbook mirror.
- Keep a recoverable copy before code or data changes and change only intended files.
- After updates, confirm registry connection, sheet totals, quality results, automatic lifecycle and plan routing.
- When noting an issue, include page, match ID, sheet, observed behavior and expected behavior.
8. Backups, exports and recovery
| Copy | What it contains | Boundary |
|---|---|---|
data_backups snapshots | SQLite/workbook copies made before supported match or logo changes. | Keeps up to 20 recent database and workbook snapshots in this project folder. Keep another copy outside the folder. |
football_analytics.db | Canonical match records and app metadata. | Stop the app before restoring a database snapshot. Restart afterwards to sync the workbook mirror. |
SOCCER_RATING.xlsx | Workbook mirror of SQLite. | Restoring only this file does not restore the canonical database. |
| Data & Notes JSON backup | Research notes in this browser. | Import replaces the notes currently saved here. It excludes match records and Manager status. |
| CSV exports | Spreadsheet-friendly snapshots of registry records or notes. | Not a full application/database restore. |
| Verified core recovery checkpoint | The existing diagnostics backup folder contains a manifest-verified recovery copy of the five SQLite databases, workbooks, non-secret application files and supporting assets. Its restored HTTP server successfully loaded the nine application pages in desktop and mobile-sized browser tests. | Verified on 21 November 2026. It remains on SAVIOLA's own physical disk and is not a separate-device, globally atomic, or complete credential/session restore. It deliberately excludes the Web Push private signing key, authenticated SoccerRating browser profile and phone-local offline drafts. A protected copy on independent storage is still needed. |
| Browser storage | Research notes, offline match drafts and confirmed sync receipts for this app origin; authoritative Manager registry is in SQLite. | Database/workbook backups do not include browser storage. Export pending draft JSON before clearing storage, reinstalling or switching origins. |
Verify a backup file before relying on it. In-folder snapshots do not protect against loss of the device or project folder.
9. Troubleshooting guide
| Symptom | Check |
|---|---|
| Registry unavailable | Keep the desktop server running; inspect startup.log or open http://127.0.0.1:8766/api/health. |
| Match absent from Plan 1/2 | Check source sheet, exact trigger odds and current Active rules. Plan 1 needs one trigger; Plan 2 needs at least two. |
| Strategy returned or not promoted | Review all five qualification values, including Performance Score, and the official SQLite Manager status. Decisions are automatic on server evaluation. |
| Counts differ | Compare full registry totals with qualifying plan records, current rules, filters and unresolved/upcoming records. Data & Notes counts scored records, not settled bets. |
| ROI/P&L differs | Check GH₵100 stake, selected odds, settled-only denominator, Plan 2 combination group and unresolved state. |
| Workbook differs from app | SQLite is authoritative. Edit through Matches, check workbook-sync status in /api/health and use the existing Retry workbook sync action if needed. Restarting is not the default remedy. |
| Offline edits not uploaded | Keep the desktop Python HTTP service running and private Tailscale Serve reachable. Open the phone app, check the connection banner and pending drafts; conflicts require manual review. |
| Notes or Manager status missing | For notes, check the browser profile and app origin. For Manager status, verify the LIVE SQLite database and server; browser storage is not authoritative. |
| Notes replaced on import | JSON restore replaces the current note list. Restore an earlier JSON backup if available. |
10. Glossary and conventions
| Term | Meaning |
|---|---|
| Active strategy | A rule in the Strategy Performance Manager after passing all five qualification rules. |
| Emerging candidate | A sheet-specific rule under study or returned after a Manager failure. |
| Trigger | Match source sheet plus exact selected market odds matching a Manager rule. |
| Plan 1 | Match with exactly one Active Manager trigger. |
| Plan 2 | Match with two or more Active Manager triggers. |
| Scored record | Match with a parseable full-time score; it is not automatically a settled bet. |
| Settled bet | Qualifying prediction with a resolved final win/loss and return. |
| Recent 20 Net | Net P&L over the latest 20 settled matches for one strategy. |
| Performance Score | Weighted 0–100 historical score used as the fifth mandatory qualification criterion; threshold at least 50. |
| Maximum Drawdown | Largest previous-peak to subsequent-trough decline in chronological cumulative settled profit, starting from zero. |
| Retrospective chronological evaluation | Later-period historical performance summary of currently selected rules; not verified out-of-sample validation. |
| Canonical registry | The SQLite match database used by the application. |
| Workbook mirror | Excel file synchronized from the canonical SQLite registry. |
| Browser-local | Data in local storage for the current browser profile and app origin. |
Keep this guide current: update it when page roles, data flow, score handling, qualification, formulas or backup behavior change. Do not treat the dated 22 November audit table or the older 17 November archive as live counters. The current match counts are available from the live Registry & Quality page, and current strategy authority must be rechecked against the SQLite server.
11. SoccerRating collection, Review Queue and archive
Source-to-registry boundary
The authenticated soccerrating_connector.py checks supported strategy pages on SoccerRating. soccer_importer.py keeps discovered fixtures and scan/alert history in a separate soccerrating_queue.db. Neither scanning nor receiving a notification adds a match to football_analytics.db. Only the user-approved Approve & Import action enters the canonical Match Registry.
Review and enrichment
The Review Queue displays fixture teams, odds, source sheet, match date and team crests. During review you can specify league, country and optional 24-hour kickoff, and choose or upload supported logos. Previously saved team/country logos are reused when recognized. Confirm match identity and odds before approval. Imported match records participate in analytics only under the same settlement and qualification rules as other registry entries.
Dismissed archive and restoration
Dismiss hides a pending candidate in the dismissed archive, not in a disk folder. Restore makes it pending for review again. Permanently Delete removes the archived queue entry, not a confirmed match in the master database. A future verified SoccerRating scan may rediscover a removed upcoming fixture. A previously imported fixture deleted from the main registry may return for review following a verified rescan; it is not automatically reapproved.
Queue status is separate from master Match Registry status. Never assume that an empty queue means no source fixtures or that a push notification is proof of successful match import. Collector access restrictions (such as HTTP 403/429) and partial scan failures need diagnosis rather than forced repeated requests.
12. Offline snapshots, drafts, synchronization and diagnostics
Online and offline readiness
The desktop desktop.py service exposes /api/health and /api/matches. A service worker stores a verified match/health snapshot in browser Cache Storage when the record counts agree. Online connectivity, an existing cached snapshot and loaded page records are different states. A previous successful page-load timestamp by itself does not guarantee an available snapshot.
On Matches, Offline diagnostics is a read-only inspection of the current offline flag, in-memory match count, snapshot-response flag, verified Cache Storage, service-worker control and pending/conflicted IndexedDB drafts. Its “App would allow local draft” status describes only the offline-draft path: NO is normal when online and direct saving is available. The diagnostics panel does not create drafts, synchronize, or clear caches.
Offline Add, Edit and Delete
The current client queues Add/Edit/Delete actions in fa-match-pending-edits-v1 IndexedDB. Existing-record edits and deletes require their original server revision. Each queued operation receives a persistent operation ID. Device-local drafts do not count as saved server matches and do not update strategies, P&L or the workbook until the desktop accepts them. Team/country logo changes still require the online service.
Reconnect and reconcile
After connectivity returns, the open app sends pending operations to /api/offline-sync. The backend checks each operation in its own SQLite transaction and records an idempotent receipt. A lost response can be safely retried using the same operation ID. Duplicate Match IDs, invalid changes and stale revisions are rejected or marked for conflict review rather than silently overwriting newer records. A group of ten operations is not one atomic transaction.
Verify the exact changed match on the desktop after synchronization. Pending count zero alone does not establish which change was made. A short transition with online flag active but page data still marked as a cached snapshot can occur until a fresh registry response loads; use a connected page reload to verify live freshness. A full offline-add/edit/delete matrix and interrupted-network conflict scenarios still require controlled testing.
Recovery boundaries
Before clearing browser storage, reinstalling the PWA or changing the Tailscale origin, export pending draft backups. Cache Storage (snapshots), IndexedDB (drafts/receipts) and localStorage (notes and non-authoritative preferences) are distinct. The LIVE Manager register is authoritative in desktop SQLite. A Data & Notes JSON backup contains research notes only; it does not preserve offline drafts, team logos, master SQLite records or synchronization receipts.
13. Web Push delivery, subscriptions and troubleshooting
Device subscriptions and background alerts
The desktop collector can send grouped discovery alerts to independently registered web browsers. Each desktop browser, installed phone app or Chrome profile can have its own subscription. Android Chrome can display Web Push while the app is closed or the phone is locked when notification permission, network access and background operation allow it. The desktop must be running to generate new scan alerts. Do not force-stop the phone browser when testing background delivery.
Understand “Notification System”
Registered devices counts saved endpoints; Last push attempt counts push-service acceptances and rejections. A 201 accepted response indicates the push service accepted the request; it does not prove a particular phone displayed the alert. “This browser”, notification permission and push subscription describe the device currently viewing the page, not the other registered devices. Hence the desktop app can display Not fully verified despite two accepted requests if its own embedded browser has no subscription. A mixture of accepted and rejected requests displays a partial status.
Handle a failed endpoint safely
HTTP 404/410 typically identifies an unavailable subscription that the app can remove automatically. HTTP 403 indicates a rejected request that needs investigation; it does not alone prove the device is old. Check the per-device hashed identifier and provider, then remove or renew only a confirmed obsolete subscription. Avoid clearing the working Samsung or Windows subscription. The push-delivery TTL and access to large notification images may affect delayed/background display; Tailscale access is needed to open protected match details and images.
Operational verification: Send a test alert with the phone app closed and screen locked. Confirm an alert appears on that device, inspect accepted/rejected counts and check its subscription separately. Do not infer locked-screen delivery from the desktop's “Test sent” message alone.
14. Archived verification register — 17 November 2026 (not current)
Evidence basis: Uploaded project snapshot FOOTBALL MAIN APP(20261117-120524).zip. These are archived counts. After subsequent installation commands, the running desktop must be checked again; no archived count is automatically a live measurement.
| Area | Snapshot finding | Evidence limits |
|---|---|---|
| Master records | 6,274 records, 6,274 with parseable FT scores, 7 represented source sheets | SQLite integrity passed; field consistency does not verify real-world fixture accuracy |
| Strategy Manager | 9 stored Active rules; earlier independent audit calculated 261 Emerging candidates with 50+ settled | Counts may change as matches or Active rules change |
| Plan 1 historical research | 578 matches, 261 wins, 317 losses; simulated net +GH₵21,272 at GH₵100 per bet | Retrospective and not independent out-of-sample performance |
| Plan 2 historical research | 8 matches, 5 wins, 3 losses; simulated net +GH₵380 across three exact combinations | Retrospective selector can use full combination history; 8 is below 50-match walk-forward minimum |
| Combined Analytics | 586 research matches, 266 wins, 320 losses; simulated net +GH₵21,652 | Keep historical research separate from official decision ledger |
| Official decisions | 2 decisions stored; both voided, zero officially settled wins/losses or known profit | No support for presenting historical research P&L as recorded bets |
| SoccerRating importer | 183 scans; 1 pending candidate, 2 imported, 1 already registered | Network scanning and phone Web Push delivery require current-device testing |
Current design and deployment boundary
Overview, Matches, Analytics, Strategies, Plan 1, Plan 2 and SoccerRating underwent staged UI redesigns in this development session. Some changes have PowerShell installation confirmations, whereas others remain awaiting device screenshots or live functional verification. This historical appendix does not certify that every local patch is installed or every control works.
Five-rule engine and qualification authority
The Manager registry is SQLite-backed in the audited November 17 source. Emerging Lab requires at least 50 settled matches before studying candidates; promotion requires all five gates: settled ≥50, net >GH₵1,000, ROI >0%, latest 20 net >GH₵0, score ≥50/100 (ROI 40%, recent-20 net 35%, sample 15%, historical net 10%). Risk and retrospective chronological reports are informational only.
Explicit limits still needing live verification
Web Push delivery with the phone locked; active browser service-worker control; offline Add/Edit/Delete conflict and reconnection scenarios; SoccerRating authentication and scan outcomes; real-time Manager updates on Android; and exact post-install source versions. A success message from PowerShell is an installation check, not an end-to-end result.
Importer approval policy
Pending fixtures do not expire when their match date passes. An operator may approve a fixture late, then add its final result in Matches. Scans do not auto-import; duplicate protection remains mandatory.
Backups and provenance
Notes JSON backs up only browser notes. Separate SQLite, workbook, queue, logo and IndexedDB draft backups are required for comprehensive recovery. Do not clear the browser or reinstall without protecting unsynchronized drafts.